Caching Issues: Need to Exclude Root PHP Script and Fix “TTL Cache = None” in PageSpeed

8 views
Skip to first unread message

Franco Gaitan

unread,
Oct 22, 2025, 5:02:41 PM (11 days ago) Oct 22
to Joomla! General Development
Dear Joomla Support Team,

I’m currently experiencing two separate caching-related issues on my Joomla 4 website. I’m using the free version of JCH Optimize, and both problems persist even after testing Joomla’s native cache configurations.

Issue 1 — Need to Exclude Root PHP Script from Cache

Description:
I have a PHP script located in the root directory of my website, which is connected to a geolocation system. When I enable caching (through Joomla or JCH Optimize), the script conflicts with the cache and stops functioning correctly.
It appears that the caching system is including this PHP file among the cached resources, which causes the malfunction.

What I need:
I need to exclude this specific PHP script from being cached, while keeping caching enabled for the rest of the website.
I would like to know exactly how to exclude a file located in the root directory from cache — either through Joomla’s settings, JCH Optimize, or by modifying the .htaccess file.
If the .htaccess solution is required, please provide the exact code lines I should add to exclude the file from caching.

Issue 2 — PageSpeed Shows “TTL Cache = None”

Description:
When analyzing my website using Google PageSpeed, I receive low performance scores mainly due to caching issues. The report specifically indicates: “TTL Cache = None.”
I’ve configured caching using both Joomla and JCH Optimize, but PageSpeed continues to show “None” for all resources.

What I need:
  • I would like to understand why the cache TTL is not being applied, even when caching is active, and how to fix it.
  • I’m looking for specific, actionable steps or code examples that will ensure the cached resources include a proper TTL value to improve performance metrics.

Summary:
  •  I need to exclude a PHP geolocation script (located in the root directory) from caching to resolve functionality conflicts.
  •  I need to fix the “TTL Cache = None” issue in PageSpeed with clear, technical steps.

Thank you very much for your help and for any precise technical guidance you can provide.

Best regards,
Franco Gaitan
Reply all
Reply to author
Forward
0 new messages