=== RadioDJ for WordPress ===
Contributors: Marius Vaida, Dragos Ilie
Tags: RadioDJ, now playing info, external database
Stable tag: 1.0.0
Requires at least: 3.8
Tested up to: 6.9
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Display RadioDJ now playing songs, requests and statistics on a WordPress site. Based on previous work by Marius Vaida.

== Description ==

[RadioDJ](http://radiodj.ro/) is free radio automation application for hassle free broadcasting. This plugin provides currently playing information, requests and other RadioDJ data integration with WordPress blog.
Code has been rewritten almost from scratch; retaining previous settings and HTML structure with users of old plugin in mind.

For more information about RadioDJ check out [radiodj.ro](http://radiodj.ro/).

= Features include: =

* Shortcode for now playing track with recent history.
* Optional Ajax refresh for now playing info.
* Shortcode for online request feature.
* Scheduler for request availability
* Advanced user check to avoid tricking the allowed daily requests
* Other shortcodes for top tracks, top albums, top artists and top requests.
* Database connection settings verification on WordPress admin side.
* Uses PHP mysqli extension if available with fallback to mysql.

= Plugin provides following six shortcodes: =

* Now Playing `[now-playing]`
* Top Played Tracks `[top-tracks]`
* Top Played Albums `[top-albums]`
* Top Played Artists `[top-artists]`
* Request Section `[track-requests]`
* Top Requests `[top-requested]`

== Installation ==
1. Install plugin either via the WordPress.org plugin directory, or by uploading the files to your server
2. Go to RadioDJ options and configure database connection
3. Add shortcodes to pages or posts
4. Enjoy!

== Frequently Asked Questions ==
= I'm having a problem with the plugin. Where can I get support? =
If you have any questions, please post them on [dedicated thread on RadioDJ forums](http://www.radiodj.ro/community/index.php?topic=5577)

IMPORTANT! To make sure that LiteSpeed cache does not interfere with **admin-ajax.php** under any circumstances, do the following.

Go to:
**LiteSpeed Cache → Cache → Excludes**

1) Do Not Cache Query Strings

Add:
rdj_ajax
_rdjts

(In the plugin, these are used as a “flag” and cache buster.)

2) Do Not Cache URIs

Add:
/wp-admin/admin-ajax.php

Also, if the request page is, for example:
https://site.com/request
Add in Do Not Cache URIs
/request
or
/requests
depending on the page slug.

3) Disable cache for dynamic pages (recommended)

Go to:
LiteSpeed Cache

Verify that:
Cache Logged-in Users = OFF
Cache REST API = OFF


4) Purge after changes!!!

Go to:
**LiteSpeed Cache → Toolbox → Purge → Purge All**
(and if available, **“Purge All - LSCache”**).

**If you have access to cPanel (optional)**

In **cPanel** (if **“LiteSpeed Cache Manager”** exists):

* **Flush LSCache**
* **Purge All**
