Fragment cache in W3 total cache not working
-
We are working on CMS project (Ticketing website using WordPress), where we have both static and dynamic pages.
As we have dynamic pages where some content of a particular section of the page is dynamic but does not trigger updates to wordpress. Hence cache plugin does not refresh the cache as there was no CRUD operation.
Hence using fragment cache feature in wp3 total cache plugin.
We have a flow to list one or more posts (we call that post as an event) in a page. We have used page cache to cache the entire page. There are sections in the page which are dynamic and needs to updated. So we need to use get_permalink() so that we will get the postId and based on postId we can get the required content dynamically.
Problem we are facing in the below code is, get_permalink() is not working inside the mfunc scope.
<!–mfunc –>
get_permalink();
<!–/mfunc –>
We are not able to get any alternative for get_permalink() function.
Please let me know how to resolve this issue. Also since get_permalink() is a native method of wordpress, can we access it inside mfunc scope?
-
Hi,
It appears that your website uses the self-hosted version of WordPress rather than WordPress.com, which is what this forum is designed to help with. Note the difference here: https://en.support.wordpress.com/com-vs-org/
You may be able to find help here: https://wordpress.org/support/ or alternatively contact your hosting provider. If it’s an issue with a specific plugin, it’s best to contact the plugin developer instead.
Hope this gets fixed soon!
- The topic ‘Fragment cache in W3 total cache not working’ is closed to new replies.