diff options
Diffstat (limited to 'demos/sqlmap-sample/protected/petshop-db')
-rw-r--r-- | demos/sqlmap-sample/protected/petshop-db/products.xml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/demos/sqlmap-sample/protected/petshop-db/products.xml b/demos/sqlmap-sample/protected/petshop-db/products.xml index bf1453b2..3c2899a7 100644 --- a/demos/sqlmap-sample/protected/petshop-db/products.xml +++ b/demos/sqlmap-sample/protected/petshop-db/products.xml @@ -1,7 +1,12 @@ <?xml version="1.0" encoding="utf-8" ?>
<sqlmap>
- <select id="SelectAllProducts">
+ <cacheModel id="product-cache" implementation="basic">
+ <!-- cache data for 60 seconds -->
+ <property name="expiry" value="60" />
+ </cacheModel>
+
+ <select id="SelectAllProducts" cacheModel="product-cache" >
SELECT *
FROM
product
|