विवरण
CloudFlare is a popular CDN service. They caches static files like .jpg
, .css
or .html
, but they doesn’t cache dynamic pages generated by WordPress without Page Rule.
Once Page Rules are set, for exmple, https://examle.com/article/*
, every single page will be cached(of course, your permalink structure should be like https://example.com/article/2019/01/01/POST_ID
).
This plugin hamecache provides cache control feature. If you update your article, hamecache automatically flush related caches on cloudflare edge location.
स्क्रिनसटहरू
स्थापना
- Upload
hamecache
directory to the/wp-content/plugins/
directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Go to ‘Setting > Cache Setting’ and enter your email address and API key which you can get your profile page on cloudflare
- Select URL to be purged. Post type, top page, extra pages, and so on.
प्रश्नोत्तर
- How can I contribute?
-
We host our sources on GitHub, so please feel free to send PR or to make issues.
- I have custom pages. How can I purge these URLs?
-
You can use
hamecache_urls_to_be_purged
filter hook for them.add_filter( 'hamecache_urls_to_be_purged', function( $urls, $post ) { // Add your custom URL. $urls[] = your_custom_link( $post ); return $urls; }, 10, 2 );
समीक्षाहरू
यस प्लगिनको लागि कुनै समीक्षाहरू छैनन्।
योगदानकर्ता र डेभलपरहरू
“hamecache” खुला स्रोत सफ्टवेयर हो। निम्न व्यक्तिहरूले यो प्लगिनमा योगदान गरेका छन्।
योगदानकर्ताहरू“hamecache” 1 लोकेलमा अनुवाद गरिएको छ। योगदानको लागि अनुवादकहरूलाई धन्यवाद।
“hamecache” लाई आफ्नो भाषामा अनुवाद गर्नुहोस्
विकासमा रुचि छ?
आरएसएस द्वारा कोड ब्राउज गर्नुहोस्, एसभीएन रिपजिटरी हेर्नुहोस्, वा विकास लग को सदस्यता लिनुहोस्।
चेन्जलग
1.0.0
- First releaes.
0.9.0
- First package for plugin repository.