Title: Cyprus Pharmacies
Author: Savvas
Published: <strong>7 Eanáir, 2022</strong>
Last modified: 3 Feabhra, 2026

---

Search plugins

![](https://ps.w.org/cyprus-pharmacies/assets/icon.svg?rev=2838717)

# Cyprus Pharmacies

 By [Savvas](https://profiles.wordpress.org/savvasha/)

[Download](https://downloads.wordpress.org/plugin/cyprus-pharmacies.1.2.8.zip)

 * [Details](https://ga.wordpress.org/plugins/cyprus-pharmacies/#description)
 * [Reviews](https://ga.wordpress.org/plugins/cyprus-pharmacies/#reviews)
 * [Development](https://ga.wordpress.org/plugins/cyprus-pharmacies/#developers)

 [Support](https://wordpress.org/support/plugin/cyprus-pharmacies/)

## Description

An easy way to show the all-night today and tomorrow pharmacies of Cyprus per city(
Nicosia, Limassol, Larnaca, Paralimni, Paphos).

A simple example

    ```
    [cypharm show_title=false]
    ```

**More Options**

The plugin supports the following optional parameters:

 * `city`: select the Cyprus city between Nicosia, Limassol, Larnaca, Paralimni 
   and Paphos (defaults to `Paphos`)
 * `title`: Choose a custom title to use (defaults to `false`)

**Performance Features**

 * **Caching**: API responses are cached for 12 hours to improve performance and
   reduce API calls
 * **Cache Management**: Admin interface to clear cache when needed
 * **Smart Loading**: Only makes API calls when cached data is expired or doesn’t
   exist

**Developer Features**

 * **Customizable Cache Duration**: Use the `cypharm_cache_duration` filter to modify
   cache duration
 * **Cache Management**: Programmatic cache clearing with `clear_cache()` method
 * **Extensible**: Easy to extend with additional caching features

### Customizing Cache Duration

You can customize the cache duration by adding the following code to your theme’s`
functions.php` file:

**Set cache to 24 hours:**
 `add_filter( 'cypharm_cache_duration', function() { 
return 86400; // 24 hours in seconds });

**Set cache to 1 hour:**
 `add_filter( 'cypharm_cache_duration', function() { return
3600; // 1 hour in seconds });

**Set cache to 30 minutes:**
 `add_filter( 'cypharm_cache_duration', function() {
return 1800; // 30 minutes in seconds });

**Disable caching (not recommended for production):**
 `add_filter( 'cypharm_cache_duration',
function() { return 0; // No caching });

**Using a named function (recommended):**
 `function my_custom_cypharm_cache_duration(){
return 7200; // 2 hours in seconds } add_filter( 'cypharm_cache_duration', 'my_custom_cypharm_cache_duration');

#### Credits

 * [National Opendata Portal](https://www.data.gov.cy/)

## Screenshots

 * [[
 * The all-night pharmacies of Paphos for 4th and 5th of January

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Cyprus Pharmacies” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Savvas ](https://profiles.wordpress.org/savvasha/)

“Cyprus Pharmacies” has been translated into 1 locale. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/cyprus-pharmacies/contributors)
for their contributions.

[Translate “Cyprus Pharmacies” into your language.](https://translate.wordpress.org/projects/wp-plugins/cyprus-pharmacies)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/cyprus-pharmacies/),
check out the [SVN repository](https://plugins.svn.wordpress.org/cyprus-pharmacies/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/cyprus-pharmacies/)
by [RSS](https://plugins.trac.wordpress.org/log/cyprus-pharmacies/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.2.8

 * UX: Added “Settings” link to plugin action links for easy access
 * UX: Improved admin interface with better code examples

#### 1.2.7

 * Performance: Added intelligent caching system to reduce API calls
 * Performance: Cache pharmacy data for 12 hours to improve page load times
 * Admin: Added cache management interface in Settings
 * Developer: Added filter hook to customize cache duration
 * Developer: Added cache clearing functionality for plugin activation/deactivation
 * Security: Maintained all previous security improvements

#### 1.2.6

 * Security: Fixed XSS vulnerabilities by properly escaping all user data from external
   APIs
 * Security: Added input validation for shortcode parameters to prevent invalid 
   city values
 * Security: Improved error handling for API responses with proper JSON validation
 * Security: Added SSL verification to prevent man-in-the-middle attacks
 * Security: Added proper user-agent headers for API requests
 * Security: Enhanced error logging for debugging API issues

#### 1.2.5

 * Fix: data.gov schema was changed.

#### 1.2.4

 * Fix: Link to Google Maps is not working.

#### 1.2.3

 * Fix: data.gov schema uses multiple date formats.

#### 1.2.2

 * Fix: data.gov schema was changed.

#### 1.2.1

 * Tweak: Add a filter hook.
 * Tweak: Add extra checks to avoid warnings for missing fields.

#### 1.2.0

 * Tweak: Code refactoring
 * New: Now the plugin is ready to be translated to your language!

#### 1.1.2

 * FIX: Wrong surname was returned

#### 1.1.1

 * FIX: Wrong community and telephone numbers

#### 1.1.0

 * Link to the Google Maps position of the pharmacy for Paphos Area.

#### 1.0.0

 * First Release!

## Meta

 *  Version **1.2.8**
 *  Last updated **3 mhí ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.3 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/cyprus-pharmacies/) and [Greek](https://el.wordpress.org/plugins/cyprus-pharmacies/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/cyprus-pharmacies)
 * Tags
 * [cyprus](https://ga.wordpress.org/plugins/tags/cyprus/)[greek](https://ga.wordpress.org/plugins/tags/greek/)
   [night](https://ga.wordpress.org/plugins/tags/night/)[pharmacies](https://ga.wordpress.org/plugins/tags/pharmacies/)
   [pharmacy](https://ga.wordpress.org/plugins/tags/pharmacy/)
 *  [Advanced View](https://ga.wordpress.org/plugins/cyprus-pharmacies/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/cyprus-pharmacies/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/cyprus-pharmacies/reviews/)

## Contributors

 *   [ Savvas ](https://profiles.wordpress.org/savvasha/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/cyprus-pharmacies/)