Forum Discussion
How does the LTM cache my site and how do I flush it?
I've published a website through my LTM v11.3 using a slightly modified version of the f5.http_clientssl iApp.
Shortly after, I noticed one of the static pages had an incorrect CSS file reference and amended it on the backend server. The change has not been reflected when accessing the site via the virtual server. I've tried reconfiguring the iApp, but that doesn't seem to have flushed the cache. I can't see any other obvious method for clearing the cache via the LTM GUI. The iApp has generated a 10MB 'caching profile' with the 'optimized-caching' parent profile.
For the record, I've verified it's not caching the page in my browser by trying it on several machines with several browsers. The page is responding with the amendments when I access it directly via the backend server.
We don't have any other applicable modules enabled that I can see, in particular Web Accelerator is unavailable. I tried the following from the terminal and got a response that it's not provisioned...
wa_clear_cache
WAM needs to be provisioned to clear the cache.
Oddly, if I access the site via the virtual server IP address in my browser, the amendments come through.
12 Replies
- Kevin_Stewart
Employee
It's been awhile since I've done this, but I think this is what you're looking for:
SOL13255: Displaying and deleting Cache Setting entries from the command line (11.x)
tmsh delete ltm profile ramcache [cache profile name]
- JG
Cumulonimbus
I have got an error running this command on v11.3:
01070283:3: The profile (/APPLICATION/xxx_Web_Acceleration) is currently associated with one or more virtual servers.
- nitass
Employee
01070283:3: The profile (/APPLICATION/xxx_Web_Acceleration) is currently associated with one or more virtual servers.
can you post the session log?
e.g.
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm profile web-acceleration mywebacc ltm profile web-acceleration mywebacc { app-service none defaults-from webacceleration } root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) show ltm profile ramcache mywebacc Ltm::Ramcaches /Common/mywebacc Host: 172.28.20.111 URI : /f5.gif -------------------------------------- Source Slot/TMM 1/1 Owner Slot/TMM 1/1 Rank 1 Size (bytes) 4246 Hits 50 Received 2013-09-01 07:52:52 Last Sent 2013-09-01 07:53:05 Expires 2013-09-01 08:48:50 Vary Type none Vary Count 1 Vary User Agent none Vary Encoding none Host: 172.28.20.111 URI : /f5.gif -------------------------------------- Source Slot/TMM 1/0 Owner Slot/TMM 1/1 Rank 1 Size (bytes) 4246 Hits 50 Received 2013-09-01 07:52:52 Last Sent 2013-09-01 07:53:05 Expires 2013-09-01 08:48:50 Vary Type none Vary Count 1 Vary User Agent none Vary Encoding none Total records returned: 2 root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) delete ltm profile ramcache mywebacc root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) show ltm profile ramcache mywebacc Ltm::Ramcaches /Common/mywebacc Total records returned: 0
- JG
Cumulonimbus
Here you are (only a portion of the output, as it was too long):
list ltm profile web-acceleration xxx_Web_Acceleration ltm profile web-acceleration xxx_Web_Acceleration { app-service none cache-aging-rate 9 cache-client-cache-control-mode all cache-insert-age-header enabled cache-max-age 86400 cache-max-entries 10000 cache-object-max-size 2000000 cache-object-min-size 0 cache-size 100mb cache-uri-exclude { /owa/ev.owa uglobal.js oab.xml } cache-uri-include { .* } cache-uri-include-override none cache-uri-pinned none defaults-from /Common/optimized-caching } (tmos) show ltm profile ramcache xxx_Web_Acceleration Ltm::Ramcaches xxx_Web_Acceleration Ltm::Ramcaches /APPLICATION/xxx_Web_Acceleration Host: server_xxx URI : /owa/14.3.146.0/scripts/premium/blank.htm ----------------------------------------------- Source Slot/TMM 1/0 Owner Slot/TMM 1/1 Rank 1 Size (bytes) 476 Hits 5956 Received 2013-09-01 14:13:56 Last Sent 2013-09-02 01:53:18 Expires 2013-09-02 14:13:55 Vary Type none Vary Count 1 Vary User Agent none Vary Encoding none Host: server_xxx URI : /owa/14.2.342.3/scripts/premium/blank.htm ----------------------------------------------- Source Slot/TMM 1/0 Owner Slot/TMM 1/1 Rank 2 Size (bytes) 503 Hits 2083 Received 2013-08-30 08:34:17 Last Sent 2013-08-30 13:59:01 Expires 2013-08-31 08:34:16 Vary Type none Vary Count 1 Vary User Agent none Vary Encoding none Host: server_xxx URI : /owa/14.2.342.3/themes/resources/owafont.css -------------------------------------------------- Source Slot/TMM 1/0 Owner Slot/TMM 1/1 Rank 3 Size (bytes) 5128 Hits 1642 Received 2013-08-30 08:34:06 Last Sent 2013-08-30 14:02:11 Expires 2013-08-31 08:34:06 Vary Type none Vary Count 1 Vary User Agent none Vary Encoding none Host: server_xxx URI : /owa/14.3.146.0/themes/resources/owafont.css -------------------------------------------------- Source Slot/TMM 1/0 Owner Slot/TMM 1/1 Rank 4 Size (bytes) 5101 Hits 1416 Received 2013-09-01 14:15:02 Last Sent 2013-09-02 01:53:09 Expires 2013-09-02 14:15:02 Vary Type none Vary Count 1 Vary User Agent none Vary Encoding none Host: server_xxx URI : /owa/14.3.146.0/themes/resources/logon.css ------------------------------------------------ Source Slot/TMM 1/0 Owner Slot/TMM 1/1 Rank 5 Size (bytes) 3227 Hits 1333 Received 2013-09-01 14:15:02 Last Sent 2013-09-02 01:53:14 Expires 2013-09-02 14:15:02 Vary Type none Vary Count 1 Vary User Agent none Vary Encoding none Host: server_xxx URI : /owa/14.2.342.3/scripts/premium/flogon.js ----------------------------------------------- Source Slot/TMM 1/0 Owner Slot/TMM 1/1 Rank 6 Size (bytes) 4519 Hits 1329 Received 2013-08-30 11:24:53 Last Sent 2013-08-30 13:59:01 Expires 2013-08-31 11:24:52 Vary Type none Vary Count 1 Vary User Agent none Vary Encoding none
- nitass
Employee
Here you are (only a portion of the output, as it was too long):
can you also post the delete command (and error) session log?
- JG
Cumulonimbus
(cfg-sync Changes Pending)(/S1-green-P:Active)(/APPLICATION)(tmos) delete ltm profile web-acceleration xxx_443_Web_Acceleration 01070283:3: The profile (/APPLICATION/xxx_443_Web_Acceleration) is currently associated with one or more virtual servers.
- nitass
Employee
(cfg-sync Changes Pending)(/S1-green-P:Active)(/APPLICATION)(tmos) delete ltm profile web-acceleration xxx_443_Web_Acceleration
shouldn't it be "ramcache" keyword rather than "web-acceleration" one?
- JG
Cumulonimbus
Ah I I ran a wrong comand. It should have been instead:
"delete ltm profile ramcache xxx_443_Web_Acceleration"
- Drew_Northup
Nimbostratus
Well, has anybody thought that perhaps somebody would want to flush the cache without deleting the cache profile itself? Why should I pay for cache that cannot be flushed? None of the above is an answer to the original question, just more work for an admin.
- Kevin_Stewart
Employee
Well, the tmsh delete ltm profile ramcache command doesn't delete the cache profile, just the records within.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com