Caching is not magic, someone needs to write the code for it. Caching plugins will handle most basic page types in wordpress, but anything which is not a post will most likely need to have an explicit integration with the caching plugin, or just have its own caching.
side note: it is a big no-no to directly access php files that are in the wp-content directory. If this is part of a plugin, you should either use the ajax or the json end points for whatever you are doing. If it is for your own site, better to place the file at the wordpress root directory, or totally outside it.
Related Posts:
- W3 total cache – cache refresh programmatically [closed]
- Best way to show Dynamic Content on a Cached WordPress Site?
- Pros and Cons for high “expire time” on wp-super-cache or w3-total-cache? [closed]
- Limit cache size from W3 Total Cache [closed]
- WordPress Browser Cache with W3-Total-Cache doesn’t show new posts [closed]
- Varnish + W3 Total Page Cache [closed]
- W3 Total Cache doesn’t detect memcached [closed]
- Settings to get the most out of W3 Total Cache
- How to force content refresh of a page that has been loaded previously by the user? [closed]
- Transient / object cache maximum key length [duplicate]
- Should the page cache be refreshed often? [closed]
- What is difference between ‘Page Cache’ and ‘Object Cache’ in WordPress?
- Getting soft 404 errors (200 status) when caching plugins are enabled
- How can I cache WordPress Rest API Response
- server load. $_SERVER[‘REMOTE_ADDR’] and $_SERVER[‘HTTP_HOST’] [closed]
- Headway body classes and W3TC page cache conflict [closed]
- How to cache a different page version based on HTTP header?
- W3 Total Cache can’t create files [closed]
- Combile External JS files using W3 Total Cache [closed]
- How can I cache font files on WordPress [closed]
- W3 total – leverage browser caching not working with cdn delivered images [closed]
- HIgh CPU usage – Will using cache plugins help
- Scheduling doesn’t work due to caching?
- APC fragmention woes on Apache AWS EC2 Small instance with WordPress and W3TC [closed]
- w3 total cache – Object Caching 2165/2469 objects? [closed]
- Changing WP Object Caching during runtime
- I’m receiving the following error using the below code: Uncaught Error: Cannot use object of type WP_REST_Response as array
- Clear cache when comment is added
- WordPress varnish pages printed twice
- WordPress Userroles button getting cached
- w3 total cache uninstall remove cache
- Page wrongly displayed when cache plugin activated
- Bluehost WebHost and performance problems with W3TC [closed]
- W3 Total Cache Minification: way to revert back? [closed]
- Cache a number of responses from external json feeds?
- Is this Solution for Caches vs Cookies Going to Get Me in Trouble?
- WP Rest API: details of latest post including featured media url in one request?
- Should I use Transient API to store HTML String, or Object?
- Caching: APC vs APCu vs OPcache
- Is define(‘WP_CACHE’, true) needed for object caching?
- Building a custom REST API
- Prevent WordPress from sending Cache-control http header
- Optimize apache for WP use
- How do I cache (core) API requests?
- WP REST API only returning partial list of users
- Does a query executed through wpdb class get cached?
- WP JSON REST API (Ryan McCue) how to query posts with specific meta data with ‘AND’ relation?
- Fetch All Posts (Including Those Using a Custom Post Type) With WordPress API
- Get Image URL instead of Attachment Id in Rest API
- Trouble with Transient API when W3TC is activated [closed]
- Configuring WordPress for Amazon CloudFront Caching?
- W3 Leverage browser caching not working for google pagespeed [closed]
- Caching: Force fresh content for logged-in users (potentially by adding a query variable to the URL)
- Multiple WordPress sites eat up alot of RAM
- Proper hook for W3TC defines, or dynamically disable w3 total cache [closed]
- How do I create a user using the new JSON api in 4.7?
- Clear cache when a post is submitted [closed]
- Disable WordPress cache programmatically on a request [closed]
- What exactly is an advanced object cache?
- Using a wildcard with delete_transient()
- Should I use Transients with W3 Total Cache APC Caching? [closed]
- Will I see a performance hit if I use native API calls like get_the_title() instead of $post->post_title?
- Is it possible to disable caching of an option when using w3 total cache?
- Nginx + WordPress + HHVM: Why isn’t Batcache working? Would Varnish help even more?
- Does a low traffic WordPress site need a caching plugin and a CDN
- Automatically Refresh WordPress Stylesheet
- WP Rest API v2 filter and display latest post with specific tag
- wp_cache_set() or wp_cache_add()
- WordPress Rest API: How do we validate with our custom API key?
- How to use cache with simplepie
- Include custom post meta value in fetched JSON
- Fragment caching increasing database queries
- How to loop through JSON data in wordpress WP REST API
- AJAX vs Fragment Caching for W3 Total Cache [closed]
- Can I force get_option to go back to the DB instead of cache?
- How can you develop on a live WordPress installation that is using W3 Total Cache? [closed]
- WP Rest API v2 return posts with specific tag
- How to stop WP API endpoint from caching?
- Which WordPress pages/URLs should never be cached?
- authentication issue with rest api – rest_cannot_create
- How to archive a wordpress site (make it read only)
- WordPress REST API – JSON “Rendered” Content Incorrect
- How to purge all transient caches?
- wordpress wp-json prefix issue
- How to: Rest endpoint returning empty object
- Stale cache handling with a persistent object cache
- Exclude certain block from caching using Fragment Caching – doesn’t work [closed]
- Are there any server requirements for WordPress transients to work properly?
- Writing a cache manifest file for a WordPress blog (app cache, offline web applications)
- Create a new user using WP REST API and declare meta object
- WP REST API – Retrieve content from page
- Can I ignore caching of a plugin in W3 Total Cache? [closed]
- Help Pinpointing Source of Caching Issue
- How to exclude a specific template from being cached by a CDN [closed]
- How to clear cache without a plugin [closed]
- can’t see live version of style.css – is it web server caching?
- Want to enforce the visitor to load the new version of your stylesheets and scripts [closed]
- Android authentication
- WP REST API route request explain
- Implementing the wp json-rest api