4

How can I clear apache cache in xammp?

I tried the 'htcacheclean -r' command, but it's always generated error.

If I know well the apache can't cache the files/ scripts, but a system administrator said this: 'The apache casheing the site, so clear the apache(!) cache.'.

Open Shell

Generated error

6
  • 1
    why did you want to clear the cache? what error did it generate? Can you post it?what are you working on?
    – aiai
    Commented Jun 12, 2015 at 6:08
  • I working on a website and i'm useing leaflet.js, but if i change the map coordinates the website don't change. I clear browser cache, but this isn't working. The system administrator said the problem is the apache cache. He don't know why but the apache cache the whole site.
    – Joci93
    Commented Jun 12, 2015 at 6:12
  • 1
    have you tried mod_cache?
    – aiai
    Commented Jun 12, 2015 at 6:16
  • @aizele How can i set it?
    – Joci93
    Commented Jun 12, 2015 at 6:26
  • 1
    what apache version are you using?
    – aiai
    Commented Jun 12, 2015 at 6:29

2 Answers 2

7

Take a look at this:

Use mod_cache at http://httpd.apache.org/docs/2.0/mod/mod_cache.html

CacheDisable /local_files

Description: Disable caching of specified URLs Syntax: CacheDisable url-string Context: server config, virtual host

0
0

Try this if others not working:

htcacheclean -p C:\xampp\htdocs\yourproject -rv -L 1000M

In this way, you specify the -p path clearly, not to expect xampp to find that path.

The -r = Clean thoroughly. This assumes that the Apache web server is not running. This option is mutually exclusive with the -d option and implies -t.
The -v = Be verbose and print statistics. This option is mutually exclusive with the -d option.
The -L 1000M = Specify LIMIT as the total disk cache inode limit.(in Megabytes)

1
  • From Review: Code-only or Command-only answers are discouraged on Stack Overflow because they don't explain how it solves the problem. Please edit your answer to explain what this code does and how it answers the question, so that it is useful to people with similar issues. See: How do I write a good answer?. Thanks Commented Mar 30, 2021 at 10:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.