tedious / Stash

The place to keep your cache.
http://www.stashphp.com
BSD 3-Clause "New" or "Revised" License
961 stars 133 forks source link

Documentation: Clear a key with subkeys wrong example code #345

Closed tstrijdhorst closed 7 years ago

tstrijdhorst commented 7 years ago

http://www.stashphp.com/Basics.html#clearing-data

It seems to me the second example should be:

// Clearing a key with subkeys
$pool->deleteItem('path/to/data');  // clears 'path/to/data/*' as well as 'path/to/data'

If not I obviously don't get how it works so I might be extra stupid or some explanation would be nice :)

alexbowers commented 7 years ago

It looks like you are correct; however this has already been fixed.

As you can see on the master branch https://github.com/tedious/www.stashphp.com/blob/master/Basics.rst it is correct.

@tedivm Please can we get the website updated?