Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

69 lines
2.6KB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <meta name="description" content="Discusses when to flush HTML Purifier's various caches." />
  8. <link rel="stylesheet" type="text/css" href="./style.css" />
  9. <title>Flushing the Purifier - HTML Purifier</title>
  10. </head>
  11. <body>
  12. <h1>Flushing the Purifier</h1>
  13. <div id="filing">Filed under Development</div>
  14. <div id="index">Return to the <a href="index.html">index</a>.</div>
  15. <div id="home"><a href="http://htmlpurifier.org/">HTML Purifier</a> End-User Documentation</div>
  16. <p>
  17. If you've been poking around the various folders in HTML Purifier,
  18. you may have noticed the <code>maintenance</code> directory. Almost
  19. all of these scripts are devoted to flushing out the various caches
  20. HTML Purifier uses. Normal users don't have to worry about this:
  21. regular library usage is transparent. However, when doing development
  22. work on HTML Purifier, you may find you have to flush one of the
  23. caches.
  24. </p>
  25. <p>
  26. As a general rule of thumb, run <code>flush.php</code> whenever you make
  27. any <em>major</em> changes, or when tests start mysteriously failing.
  28. In more detail, run this script if:
  29. </p>
  30. <ul>
  31. <li>
  32. You added new source files to HTML Purifier's main library.
  33. (see <code>generate-includes.php</code>)
  34. </li>
  35. <li>
  36. You modified the configuration schema (see
  37. <code>generate-schema-cache.php</code>). This usually means
  38. adding or modifying files in <code>HTMLPurifier/ConfigSchema/schema/</code>,
  39. although in rare cases modifying <code>HTMLPurifier/ConfigSchema.php</code>
  40. will also require this.
  41. </li>
  42. <li>
  43. You modified a Definition, or its subsystems. The most usual candidate
  44. is <code>HTMLPurifier/HTMLDefinition.php</code>, which also encompasses
  45. the files in <code>HTMLPurifier/HTMLModule/</code> as well as if you've
  46. <a href="enduser-customize.html">customizing definitions</a> without
  47. the cache disabled. (see <code>flush-generation-cache.php</code>)
  48. </li>
  49. <li>
  50. You modified source files, and have been using the standalone
  51. version from the full installation. (see <code>generate-standalone.php</code>)
  52. </li>
  53. </ul>
  54. <p>
  55. You can check out the corresponding scripts for more information on what they
  56. do.
  57. </p>
  58. </body></html>
  59. <!-- vim: et sw=4 sts=4
  60. -->